Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI] Make page title sticky and remove box shadow #403

Merged
merged 2 commits into from
May 10, 2023

Conversation

justinkambic
Copy link
Contributor

@justinkambic justinkambic commented Apr 19, 2023

Summary

Resolves #396 .

Makes the recorder's page header static at the top of the viewport during scrolling, and removes its box shadow.

Implementation details

When we upgraded EUI we encountered some less-than-desired behavior (shown in the linked issue) where an expanded flyout leaves the title section of the page undimmed while the flyout is expanded. The true intention of this functionality is that the flyout will appear below a static heading UI, whereas ours fills in all the way to the top of the viewport.

To resolve this unwanted behavior, I've modified the page heading to be sticky, per the design standards shown in both the EUI docs and in multiple parts of Kibana. Now, when the user scrolls, the page heading will remain at the top of the viewport, and will remain accented when the flyout opens.

A side effect of this change is the removal of the box shadow; because it is highlighted while the flyout is open, it makes the title look weird. Rendering the shadow conditionally is also less-than-ideal because having it snap away when the flyout opens is also janky.

How to validate this change

You can compare this change by running the recorder in dev mode and switching between this branch and main.

@justinkambic justinkambic added the bug Something isn't working label Apr 19, 2023
@justinkambic justinkambic self-assigned this Apr 19, 2023
@justinkambic justinkambic requested a review from kyungeunni April 20, 2023 16:04
@kyungeunni
Copy link
Contributor

Tested locally, and the header is now fixed at the top 👍
For some reason, I do not see the Journey Code header in Export flyout though
image

@justinkambic
Copy link
Contributor Author

@kyungeunni this is ready for another look when you have time.

Copy link
Contributor

@kyungeunni kyungeunni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
image

@justinkambic justinkambic merged commit aa6f56b into elastic:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] The header is hidden when scrolls down
2 participants